package com.example.lilong;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatTextView;




public class MainActivity extends AppCompatActivity {

    private AppCompatTextView QueryView;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //实例化控件
        //初始化数据
        setContentView(R.layout.main1);
        //初始化数据
        QueryView = findViewById(R.id.QueryView);

        QueryView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this,MainAdapter.class);
                startActivity(intent);
            }
        });
        //初始化事件
    }

}